[#assign PayMode = {"0" : "线下支付", "1" : "快钱在线支付", "2" : "浙商在线支付", "3" : "平安银行在线支付"}]
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="/res/back/css/base.css" rel="stylesheet" type="text/css" />
    <link href="/res/third/bootstrap3/css/bootstrap-select.css" rel="stylesheet" type="text/css" />
    <link href="/res/third/bootstrap3/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="panel panel-info panel-content">
    <div class="panel-heading">
        <form id="soform" method="post" >
            <table>
                <tr>
                    <td class="w80">
                        <label for="so_companyName" class="center-block">企业名称：</label>
                    </td>
                    <td class="w120">
                        <input type="text" class="form-control" id="companyName" name="companyName" value="${companyName!}" placeholder="企业名称">
                    </td>
                    <td>
                        <div class="input-group">
                            <input type="text" class="form-control"  name="keyword"  value="${keyword!}" placeholder="订单编号">
                            <span class="input-group-btn">
							<button class="btn btn-default" type="button" onclick="sosuo()">搜索</button>
						</span>
                        </div>
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <table class="table table-hover table-bordered table-striped table-condensed">
        <thead>
            <tr>
                <th>订单编号</th>
                <th>买家</th>
                <th>卖家</th>
                <th>金额（元）</th>
                <th>支付方式</th>
                <th>支付时间</th>
            </tr>
        </thead>
    [#list pagination.list as pay]
        <tr>
            <td>${pay.orderNumber!}</td>
            <td>${pay.buyerCompanyName!}</td>
            <td>${pay.sellerCompanyName!}</td>
            <td>${pay.totalPrice!}</td>
            <td>${PayMode[pay.payMode?string]!}</td>
            <td>${pay.payTime?datetime!}</td>
            [#--<td>--]
                [#--<button class="btn btn-info btn-xs" onclick="detail(${pay.id})">详情</button>--]
            [#--</td>--]
        </tr>
    [/#list]
    </table>

    <div class="panel-footer">[@fenye p = pagination form = 'infoForm' /]</div>
</div>

<script src="/res/common/js/jquery.1.9.1.min.js" type="text/javascript"></script>
<script src="/res/third/bootstrap3/bootstrap.min.js" type="text/javascript"></script>
<script src="/res/third/bootstrap3/bootstrap-select.js" type="text/javascript"></script>
<script src="/res/third/artDialog/jquery.artDialog.js" type="text/javascript"></script>
<script src="/res/third/validate/jquery.validate.js" type="text/javascript"></script>
<script src="/res/third/layer/layer.js"></script>

<script type="text/javascript">
    function sosuo(){
        var lpath =location.pathname;
        var pageNo = 1;
        $("#soform").attr("action",lpath+"?pageNo="+pageNo);
        $("#soform").submit();
    }

    function detail(orderId) {
        top.addTab("订单详情", "/order/order_detail.do?orderId=" + orderId);
    }

</script>
</body>
</html>